import request from '@/utils/request'

export default {
  getLarge() {
    return request({
      url: '/dictionary/getDictionaryLargeList',
      method: 'get'
    })
  },
  getParent(lev) {
    return request({
      url: `/dictionary/getParent/${lev}`,
      method: 'post',
    })
  },
  getClassificationList(largeClassification){
    return request({
      url: '/dictionary/getClassificationList?',
      method: 'post',
      data: largeClassification,
    })
  },
  getDictionaryList(currentPage, pageSize, dictionaryQuery){
    return request({
      url: `/dictionary/getListByPage/${currentPage}/${pageSize}`,
      method: 'post',
      data: dictionaryQuery
    })
  },
  saveDictionary(dictionary,parentText){
    return request({
      url: `/dictionary/save/${parentText}`,
      method: "post",
      data: dictionary
    })
  },
  updateDictionary(dictionary,parentText){
    return request({
      url: `/dictionary/save/${parentText}`,
      method: 'post',
      data: dictionary
    })
  },
  remove(id){
    return request({
      url: `/dictionary/remove/${id}`,
      method: "get"
    })
  },
  getInforById(id){
    return request({
      url: `/dictionary/getById/${id}`,
      method: 'get'
    })
  },
  removeAll(multipleSelection){
    return request({
      url: `/dictionary/removeAll`,
      method: 'post',
      data: multipleSelection
    })
  },
  getParentById(id) {
    return request({
      url: `/dictionary/getParentById/${id}`,
      method: 'get',
    })
  },






}
